//
//  TroopStyle.cpp
//  fingeradvanture
//
//  Created by shuaibincheng on 16/5/18.
//
//

#include "TroopStyle.hpp"
#include "LineOneTypeStyle.hpp"
#include "LineTwoTypesStyle.hpp"
#include "CrossTwoTypesStyle.hpp"
#include "CircleStyle.hpp"

TroopStyle *TroopStyle::getTroopStyleByType(TroopStyleType type, int num)
{
    switch (type) {
        case TYPE_LINEONETYPESTYLE:
            return new LineOneTypeStyle(num);
        case TYPE_LINETWOSTYLESSTYLE:
            return new LineTwoTypesStyle(num);
        case TYPE_CROSSTWOSTYLESSTYLE:
            return new CrossTwoTypesStyle(num);
        case TYPE_CIRCLE:
            return new CircleStyle(num);
        default:
            return new TroopStyle(num);
            break;
    }
}